#ifndef __WINDOWS_GLES_H__
#define __WINDOWS_GLES_H__

#include "fwWindows.h"
#include "fwDefine.h"
#include "..\fwMessageService.h"

class WindowsOpenGLESv2 : public Windows
{
protected:
	ESContext* m_pESContext;
protected:
	virtual FWboolean CreateWindows();
	virtual FWboolean CreateClientWindows();

	virtual void KeyboardUpdate(WPARAM wParam, FWboolean status);
	virtual void MouseUpdate();
protected:
	virtual void InternalRun(const FWobject extra);

	//Message callback function
	//friend void CallBackDraw(const FWobject, FWobject);
	friend void CallBackStartDevice(const FWobject, FWobject);
	friend void CallBackEndDevice(const FWobject, FWobject);
public:
	WindowsOpenGLESv2(FWuint iWidth, FWuint iHeight, char * szTitle, FWuint iFlags);
	~WindowsOpenGLESv2();
	virtual FWint Init();
	virtual void Exit();
	virtual void Destroy();
};

#endif